package com.unlcn.ils.crsc.dao.model.crsc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 其它系统调取服务的日志
 * </p>
 *
 * @author qichao
 * @since 2018-04-29
 */
@TableName("crsc_otd_query_log")
public class CrscOtdQueryLog extends Model<CrscOtdQueryLog> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 调用系统名称
     */
	@TableField("query_system")
	private String querySystem;
    /**
     * 调用地址
     */
	@TableField("query_url")
	private String queryUrl;
    /**
     *  调取类型 拉取还是推送(0:拉取，1:推送)
     */
	@TableField("pull_or_push")
	private String pullOrPush;
    /**
     * 调用开始时间
     */
	@TableField("query_start_time")
	private Date queryStartTime;
    /**
     * 结果返回时间
     */
	@TableField("query_end_time")
	private Date queryEndTime;
    /**
     * 调用参数
     */
	private String parameters;
    /**
     * 返回的记录数
     */
	@TableField("result_count")
	private Integer resultCount;
    /**
     * 返回结果
     */
	@TableField("result_content")
	private String resultContent;
    /**
     * 是否成功
     */
	@TableField("is_success")
	private Boolean isSuccess;
    /**
     * 状态码
     */
	@TableField("message_code")
	private String messageCode;
    /**
     * 返回信息
     */
	private String message;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQuerySystem() {
		return querySystem;
	}

	public void setQuerySystem(String querySystem) {
		this.querySystem = querySystem;
	}

	public String getQueryUrl() {
		return queryUrl;
	}

	public void setQueryUrl(String queryUrl) {
		this.queryUrl = queryUrl;
	}

	public String getPullOrPush() {
		return pullOrPush;
	}

	public void setPullOrPush(String pullOrPush) {
		this.pullOrPush = pullOrPush;
	}

	public Date getQueryStartTime() {
		return queryStartTime;
	}

	public void setQueryStartTime(Date queryStartTime) {
		this.queryStartTime = queryStartTime;
	}

	public Date getQueryEndTime() {
		return queryEndTime;
	}

	public void setQueryEndTime(Date queryEndTime) {
		this.queryEndTime = queryEndTime;
	}

	public String getParameters() {
		return parameters;
	}

	public void setParameters(String parameters) {
		this.parameters = parameters;
	}

	public Integer getResultCount() {
		return resultCount;
	}

	public void setResultCount(Integer resultCount) {
		this.resultCount = resultCount;
	}

	public String getResultContent() {
		return resultContent;
	}

	public void setResultContent(String resultContent) {
		this.resultContent = resultContent;
	}

	public Boolean getSuccess() {
		return isSuccess;
	}

	public void setSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getMessageCode() {
		return messageCode;
	}

	public void setMessageCode(String messageCode) {
		this.messageCode = messageCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CrscOtdQueryLog{" +
			", id=" + id +
			", querySystem=" + querySystem +
			", queryUrl=" + queryUrl +
			", pullOrPush=" + pullOrPush +
			", queryStartTime=" + queryStartTime +
			", queryEndTime=" + queryEndTime +
			", parameters=" + parameters +
			", resultCount=" + resultCount +
			", resultContent=" + resultContent +
			", isSuccess=" + isSuccess +
			", messageCode=" + messageCode +
			", message=" + message +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
